//
//  NEDDefines.h
//  NEDKit
//
//  Created by lin on 2020/6/23.
//  Copyright © 2020 Mac. All rights reserved.
//

#ifndef NEDDefines_h
#define NEDDefines_h


#define LS(key) NSLocalizedString(key, nil)

//weakSelf
#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;
#define WSObj(obj,weakObj)  __weak __typeof(&*obj)weakObj = obj;
#define SS(self)  __weak __typeof(&*weakSelf)self = weakSelf;


/// MARK: -

#ifdef DEBUG

#define NSLogType(type,fmt,...) NEDLog(type,[[[NSString stringWithFormat:@"%s",__FILE__] lastPathComponent] stringByDeletingPathExtension],__LINE__,fmt, ##__VA_ARGS__)

#define NSLog(fmt,...) NSLogType(@"",fmt, ##__VA_ARGS__)
#define NSLogInfo(fmt,...) NSLogType(@"ℹ️Info",fmt, ##__VA_ARGS__)
#define NSLogError(fmt,...) NSLogType(@"❌Error",fmt, ##__VA_ARGS__)

#else

#define NSLog(...)
#define NSLogType(...)
#define NSLogInfo(...)
#define NSLogError(...)

#endif



#endif /* NEDDefines_h */
